package com.inforich.common.enums;

import com.google.common.collect.Sets;
import java.util.Map;
import java.util.Set;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/27
 */
public enum RoleCodeEnum {
  /**
   * 项目管理员
   */
  PROJECT_ADMIN("project_admin"),
  /**
   * 清运公司管理员
   */
  TRANSPORT_COMPANY_ADMIN("transport_company_admin"),
  /**
   * 司机
   */
  DRIVER("driver");

  private String roleCode;

  public String getRoleCode() {
    return roleCode;
  }

  public static final Set<String> ROLE_CODES = Sets.newHashSet();

  static {
    for (RoleCodeEnum roleCodeEnum : RoleCodeEnum.values()) {
      ROLE_CODES.add(roleCodeEnum.getRoleCode());
    }
  }

  RoleCodeEnum(String roleCode) {
    this.roleCode = roleCode;
  }

}
